<template>
  <div class="schedule">
    <div v-if="scheduleData && scheduleData.dailyDay">
      <div class="title">{{ scheduleData.dailyDay }}</div>
      <div>
        <div
          v-for="(i, index) in scheduleData.dailyTaskList"
          :key="index"
          class="item"
        >
          <div class="item_top">
            <p class="type">日程：{{ i.dailyType }}</p>
            <p class="theme">主题：{{ i.dailyTheme }}</p>
          </div>
          <div class="item_bottom">
            <p class="type">时间：{{ i.dailyTime }}</p>
            <p class="theme">地点：{{ i.dailyPlace }}</p>
          </div>
        </div>
      </div>
    </div>
    <el-empty v-else description="暂无日程"></el-empty>
    <!-- <img src="~@/assets/reset/02.png" class="right_img_col" /> -->
  </div>
</template>

<script>
export default {
  props: {
    scheduleData: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
.el-empty {
  padding: 0;
}
.schedule {
  position: relative;
  height: 100% !important;
  min-height: 24vh;
  width: 100%;
  border-top: 5px solid #f2f2f2;
  &::-webkit-scrollbar {
    display: none;
  }

  .title {
    color: #000;
    font-family: Inter;
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
  }
  .item {
    padding-left: 10px;
    margin: 6px 0;
    border-bottom: 1px dotted #e8e8e8;
    &:last-child {
      border-bottom: none;
    }
  }
  .item_top,
  .item_bottom {
    color: #000;
    font-size: 14px;
    font-weight: 500;

    min-height: 30px;
    display: flex;
    align-items: center;
    .type {
      flex: 2;
    }
    .theme {
      flex: 3;
    }
  }
}
</style>
